package com.logicalthinking.socialmall.dao;

import com.logicalthinking.socialmall.entity.ThirdPartyUsers;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Set;

/**
 * 第三方登陆用户
 *
 * @author chenLiJia
 * @version 1.0
 * @since 2020-02-18 11:39:10
 **/
public interface ThirdPartyUsersMapper extends Mapper<ThirdPartyUsers> {
    ThirdPartyUsers selectByPrimaryKey(Integer id);

    /**
     * 根据用户Id和用户来源查询第三方信息
     *
     * @param userIdSet 用户id集合
     * @param source    用户来源
     * @return
     */
    List<ThirdPartyUsers> listByUserIdSetAndType(@Param("userIdSet") Set<Integer> userIdSet, @Param("source") String source);
}